Dashboard: bias content to top with a small capped gap#96
Merged
Conversation
PR #94 vertically centered the grid (margin-block:auto), which floated a few short service rows to mid-screen and left a large empty band above the panels on tall monitors. Replace the full-height centering with a small, capped top gap (margin-top: clamp(0.5rem, 5vh, 2.5rem)); the remaining viewport slack falls below. Guard test updated accordingly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7a1dda2 to
16cd87b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
PR #94 vertically centered the dashboard grid (
.grid { margin-block:auto }) inside a full-viewport.page. With only a few short service rows, the panels float to mid-screen, leaving a large empty band above them on tall monitors (reported from the live server).Fix
Replace the full-height centering with a small, capped top gap and let the remaining viewport slack fall below:
.grid: dropmargin-block:auto; addmargin-top: clamp(0.5rem, 5vh, 2.5rem)..pagekeepsmin-height:calc(100vh - 4rem)+box-sizing:border-box+ flex column.Content now sits just below the banner with a small, intentional gap (not glued, not centered). Guard test
test_dashboard_grid_widens_services_and_fills_viewportupdated to assert nomargin-block:autoand amargin-top:clamp(gap.Verification
20/20
test_ui_redesign.pypass; black + flake8 clean.🤖 Generated with Claude Code